package com.yin.good.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yin.good.entity.GoodInfoEntity;
import com.yin.good.service.GoodInfoService;

/**
*@author LSY
*Time: 2018年12月26日下午5:42:30
*
*
*/
@RestController
@RequestMapping("/good")
public class GoodController {

	/**
     * 商品业务逻辑实现
     */
    @Autowired
    private GoodInfoService goodInfoService;
    /**
     * 添加商品
     * @return
     */
    @RequestMapping(value = "/save")
    public Long save(GoodInfoEntity good) throws Exception
    {
        return goodInfoService.saveGood(good);
    }

}
